package com.gzx.spring.boot.init;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Service;

import com.gzx.spring.boot.utils.SpringContext;

import jakarta.annotation.Resource;

/**
 * spring服务启动中，执行，用于调用服务注解解析
 * 
 * @author wuyan_dxm
 * 
 */
@Service
public class GzxService implements ApplicationContextAware {
    @Resource
    private BeanTagsChecker beanTagsChecker;

    @Override
    public void setApplicationContext(ApplicationContext ctx) throws BeansException {
        SpringContext.initApplicationContext(ctx);
        beanTagsChecker.extInit(ctx);
    }
}
